package com.curator;

import java.io.IOException;

import com.netflix.curator.framework.CuratorFramework;
import com.netflix.curator.framework.CuratorFrameworkFactory;
import com.netflix.curator.retry.ExponentialBackoffRetry;

public class CuratorTools {
	public static void main(String[] args) throws IOException {
		 CuratorFramework client = CuratorFrameworkFactory.newClient(
	               "192.168.70.30:2181",                    // 服务器列表
	                5000,                                    // 会话超时时间，单位毫秒
	                3000,                                    // 连接创建超时时间，单位毫秒
	                new ExponentialBackoffRetry(1000, 3)    // 重试策略
	        );
	        client.start();
	        
	        
	        
	        
	        client.close();
	}
}
